import request from "@/utils/request";
import axios from "axios";
//获取所有的风险预警的产品信息
export const warningProductList = (params) => {
  return request({
    url: "/zhjcright/dangerWarningProduct/list",
    method: "get",
    params: params,
  });
};

export const getCity = (options)=>{
    return  request({
      url:"/zhjcright/administrativeRegion/getAreaTree",
      method:"get",
      params:options,
    })
}

//获取实况数据
export const getFactsInfo = async(options)=>{
  return await request({
    url:"/zhjcright/smallscaleStation/live",
    method:"get",
    params:options,
  })
}

//获取雷达
export const getDoppler = async(options)=>{
  return await request({
    url:"/zhjcright/doppler/list",
    method:"get",
    params:options
  })
}

//获取云图
export const getSatellitenephoram = async(options)=>{
  return await request({
    url:"/zhjcright/satellitenephoram/list",
    method:"get",
    params:options,
  })
}

//获取河流气候数据
export const getRiverAnnualClimateStatistics = async(options)=>{
  return await request({
    url:"/zhjcright/riverInfo/statistics",
    method:"get",
    params:options,
  })
}

//获取详细请求
export const getRiverDetialById = async(options)=>{
  return await request({
    url:"/zhjcright/riverInfo/getPrecipitationAndAnomaly",
    method:"post",
    data:options,
  })
}

export const getWarnSignalInfo = (options)=>{
  return  request({
    url:"/zhjcright/warnSignalInfo/list",
    method:"get",
    params:options,
  })
}

//获取风向规划的数据
export const getRiskZoning = async(options)=>{
  return await request({
    url:"/zhjcright/file/riskZoning",
    method:"get",
    params:options,
  })
}

//获取预报数据
export const getYuBaoInfo = async(options)=>{
  return await request({
    url:"/zhjcright/forecastGridFile/list",
    method:"get",
    params:options,
  })
}
//获取网格图片数据
export function getFactsGrid(data){
  return  request({
    url:"/zhjcright/forecastGridFile/listPicture",
    method:"get",
    params:data,
  })
}